/* 
* Copyright (C) 2015,中油瑞飞, 
* All Rights Reserved 
* Description: TODO What the class does.   
* 
* @project 瑞信
* @author  Administrator
* @date    2016年9月16日-下午7:03:47
*
* Modification History: 
**********************************************************
* Date		  Author		    Comments
* 2016年9月16日	  Administrator			Create
**********************************************************
*/
package com.liuhaozzu.hibernate.demo.po.twowaymany2many;

import java.util.HashSet;
import java.util.Set;

/**
 * TODO What the class does
 * <p>Title:com.liuhaozzu.hibernate.demo.po.many2many.Role.java</p>
 * <p>Description: </p>
 * <p>Company:www.richfit.com</p>
 * @author liuhaozzu
 * @date   2016年9月16日-下午7:03:47
 *
 */
public class Role2 {

	private int id;
	private String name;
	private Set<Function2> function2s=new HashSet<>();
	
	/**
	 * 
	 */
	public Role2() {}
	/**
	 * @param name
	 * @param function2s
	 */
	public Role2(String name, Set<Function2> function2s) {
		this.name = name;
		this.function2s = function2s;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Set<Function2> getFunction2s() {
		return function2s;
	}
	public void setFunction2s(Set<Function2> function2s) {
		this.function2s = function2s;
	}
	@Override
	public String toString() {
		return "Role2 [id=" + id + ", name=" + name + ", function2s=" + function2s + "]";
	}
	
}
